const Koa = require('koa')

const app = new Koa()


const main = (ctx) => {
  ctx.response.body = 'this is a text'
}

app.use(main)

app.listen(3000, () => {
  console.log('server is loading on 3000')
})